package com.example.sentinel.consumer.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.example.sentinel.common.bean.Result;

/**
 * Description:
 *
 * @author JourWon
 * @date 2019/12/25 9:40
 */
public class CustomBlockHandler {

    public static Result handleException(BlockException exception) {
        return Result.fail("限流成功！");
    }

}
